package com.etc.config;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

//@ControllerAdvice
public class GlobalExceptionHandler {


    @ExceptionHandler(Exception.class)
//    @ResponseBody
    public String handleMyException(Exception e){

        return "error";
    }


}

